package cn.tedu.hospitalqd.mapper;

import cn.tedu.hospitalqd.pojo.entity.Zhenliao;
import cn.tedu.hospitalqd.pojo.vo.ZhenliaoListItemVO;
import cn.tedu.hospitalqd.pojo.vo.ZhenliaoStandarVO;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface ZhenliaoMapper {
    int insert(Zhenliao zhenliao);
    List<Zhenliao> select();
    Zhenliao selectById(int id);
    int deleteById(Long i);
    int update(Zhenliao d);
    int selectCount();
    int deleteByIds1(Integer[] ids);
    void deleteByIds2(Integer... ids);
    void deleteByIds3(List<Integer> ids);
    int dynamicUpdate(Zhenliao zhenliao);

    int countByNameAndNotId(Long id, String name);

    int countByName(String name);

    ZhenliaoStandarVO getStandardById(Long id);

    List<ZhenliaoListItemVO> list();
}
